#ifndef CUSTOMVIEW_H
#define CUSTOMVIEW_H
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QGraphicsEllipseItem>
#include <QMouseEvent>
#include <QWidget>
#include <QLabel>
#include <QMouseEvent>
#include <QEvent>
#include <QtDebug>
#include "mainwindow.h"
class CustomView: public QGraphicsView
{

public:
    CustomView(QWidget* parent);
    void mousePressEvent(QMouseEvent* ev);
    void inc(MainWindow * MW);
    int x,y;
    MainWindow * MaWi;
    int coord[4];
    int count;

public slots:
    void Mouse_pressed();

};

#endif // CUSTOMVIEW_H
